package org.assistant.csp.dao;

import java.util.List;

import org.assistant.common.exception.GetFromDBException;
import org.assistant.common.exception.SaveIntoDBException;
import org.assistant.csp.data.RelationUser;

public interface RelationUserDao {
	/**
	 * 根据ID获取关联用户信息
	 * 
	 * @param relationUserId
	 * @return
	 * @throws GetFromDBException
	 */
	public RelationUser getRelationUserById(String relationUserId)
			throws GetFromDBException;

	/**
	 * 根据家庭ID获取该家庭下的关联用户信息
	 * 
	 * @param homeId
	 * @return
	 * @throws GetFromDBException
	 */
	public List<RelationUser> getRelationUserByHome(String homeId)
			throws GetFromDBException;

	/**
	 * 保存关联用户信息
	 * 
	 * @param relationUser
	 * @throws SaveIntoDBException
	 */
	public void insertRelationUser(RelationUser relationUser)
			throws SaveIntoDBException;
}
